<template>
  <h1>这是首页</h1>
  <Button type="primary" @click="setColorModel('light')">浅色模式</Button>
  <Button type="default" @click="setColorModel('dark')">深色模式</Button>
  <CellGroup>
    <Cell title="单元格" value="内容"/>
    <Cell title="单元格" value="内容" label="描述信息"/>
  </CellGroup>
</template>
<script setup>
import {Button, Cell, CellGroup} from 'vant';
import store from "@/store";
const setColorModel = (model) => {
  store.commit('setColorModel', model)
}
</script>
<style lang="scss">
h1{
  font-size: 30px;
}
</style>
